//
//  YCTitleCollectionView.h
//  TitleContent
//
//  Created by 唐可雄 on 2019/7/18.
//  Copyright © 2019 swustyc. All rights reserved.
//

#import "YCTitleView.h"

#import "YCTitleViewCell.h"

@class YCTitleCollectionView;

NS_ASSUME_NONNULL_BEGIN

@protocol YCTitleCollectionViewDataSource <YCTitleViewDataSource>

@optional
- (NSString *)titleCollectionView:(YCTitleCollectionView *)titleView titleAtIndex:(NSUInteger)index;
/**
 右侧按钮，想要指定大小

 @param titleView 标题栏
 @return 右侧按钮
 */
- (UIButton *)rightButtonInTitleCollectionView:(YCTitleCollectionView *)titleView;
- (Class)customCellClassInTitleCollectionView:(YCTitleCollectionView *)titleView;
- (void)titleCollectionView:(YCTitleCollectionView *)titleView configCellAtIndex:(NSUInteger)index;

@end

@interface YCTitleCollectionView : YCTitleView

@property (nonatomic, weak) id<YCTitleCollectionViewDataSource> dataSource;
@property (nonatomic, weak) id<YCTitleViewDelegate> delegate;

- (void)transitionToTargetIndex:(NSUInteger)targetIndex progress:(CGFloat)progress;

@end

NS_ASSUME_NONNULL_END
